.formSection {
    position: relative;
    margin-bottom: 40px;
    .sectionHeader {
        font-size: 16px;
        line-height: 40px;
        font-weight: bold;
        margin-bottom: 1em;
    }
    .sectionControls {
        position: absolute;
        right: 0;
        top: 0;
        line-height: 40px;

        :global {
            .ant-btn-link {
                color: #666;
            }
            .ant-btn-link.edit,
            .ant-btn-link:hover {
                color: #ffa22d;
            }
        }
    }
}
.formSectionFlex {
    :global {
        .multiLineText {
            line-height: 1.8em;
            margin-top: 8px;
            word-break: break-all;
        }
        .ant-form {
            display: flex;
            flex-wrap: wrap;
            .ant-form-item {
                display: flex;
                width: 50%;
                padding-right: 24px;
                .ant-form-item-label {
                    width: 160px;
                    flex-shrink: 0;
                }
                .ant-form-item-control-wrapper {
                    flex: 1;
                }
            }
        }
    }
}

.formView {
    :global {
        .ant-form-item {
            margin-bottom: 0;
        }
    }
}

.formEdit {
    :global {
        .ant-form-item {
            margin-bottom: 16px;
        }

        .ant-form-item:last-child {
            margin-bottom: 0;
        }
    }

    .basicInfoEdit {
        .ant-form-item:last-child {
            margin-bottom: 16px;
        }
    }
}

.dynamicList {
    .dynamicListBlank {
        margin-top: 1em;
        padding: 1em;
        text-align: center;
        background: #f7f7f7;
        border-radius: 4px;
    }
    .dynamicListItem {
        position: relative;
        border-radius: 4px;
        background: #f7f7f7;
        padding: 14px 0;
        margin-bottom: 20px;

        &:last-child {
            margin-bottom: 0;
        }

        .dynamicListClose {
            position: absolute;
            top: -5px;
            right: 0;
        }
    }
}

.materialTableWrap {
    :global {
        .ant-table-tbody {
            > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td {
                background-color: transparent;
            }
            > tr > td.fileColumn .file:hover {
                background-color: rgba(255, 158, 0, 0.1) !important;
                color: #ffa22d;
                .deleteFile {
                    visibility: visible;
                }
            }
            > tr > td {
                padding: 0;
                .padding-16 {
                    padding: 16px;
                }
            }
        }
    }
}
.recordItem {
    margin: 0 16px 16px;
    :global {
        .ant-card-head {
            background-color: #fafafa;
        }
    }
    &:hover {
        transition: all 0.2s;
        box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
    }
    .recordItemRow {
        line-height: 40px;
    }
    .recordItemLabel {
        color: #aaa;
    }
    .recordItemValue {
        color: #000;
    }
    .recordItemStatus {
        margin-top: 10px;
        background-color: #ecfff7;
        color: #44c69d;
        border-radius: 4px;
        line-height: 46px;
        font-size: 14px;
        padding: 0 16px;
    }
}

.filesWrapper {
    :global {
        .file {
            display: flex;
            padding: 16px;
            border-bottom: 1px solid #e8e8e8;
            &:last-child {
                border-bottom: none;
            }
            .fileName {
                display: inline-block;
                max-width: 300px;
                text-overflow: ellipsis;
                white-space: nowrap;
                overflow: hidden;
            }
            .preview {
                cursor: pointer;
                font-size: 16px;
                margin-left: 10px;
            }
            &:hover {
                background-color: rgba(255, 158, 0, 0.1) !important;
                color: #ffa22d;
            }
        }
    }
}

.paperMaterialsTable {
    :global {
        .ant-table-tbody {
            > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td {
                background-color: transparent;
            }
            .fileColumn {
                padding: 0;
                .noFile {
                    color: #a8a8a8;
                    padding: 0 16px;
                }
                .materialList {
                    padding: 10px 16px;
                    line-height: 1.5em;
                }
            }
        }
    }
}

.tableRowCursorPointer {
    cursor: pointer;
}

.contentTable {
    :global {
        .ant-table-small > .ant-table-content > .ant-table-body {
            margin: 0;
        }
        .ant-table-body td {
            background-color: #fff;
        }
    }
}

.uploadButton {
    font-size: 18px;
    color: #666;
    &:hover {
        cursor: pointer;
        color: #ffa22d;
    }
}
